import java.text.ParseException;
import java.util.Date;
import java.text.SimpleDateFormat;

public class CompilationException {
    public static void main(String[] args) {



           // fun(300);




    }


    public static void fun(int age) throws Exception{
        if (age > 0 && age < 200){
            System.out.println(age);
        }else {
            throw new AgeCompilationException("The age you entered is not legal");
        }
    }
}

/*        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String str = "2028-12-1 12:00:00";
        Date date =  simpleDateFormat.parse(str);
        System.out.println(date);
    }
}*/
/*
    public static void main(String[] args) {

        Date date = null;
        try {
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
            String str = "2028-12-1 12:00:00";
            date = simpleDateFormat.parse(str);
        } catch (ParseException e) {
            throw new RuntimeException(e);
        }
        System.out.println(date);
    }
}
*/
